<!DOCTYPE html>
<!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
-->

<!-- made by zoster 2013.04.08 to -->

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="format-detection" content="telephone=no" />
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        
        
        
        <!-- cordova -->
        <link rel="stylesheet" type="text/css" href="css/index.css" />
        <script type="text/javascript" src="cordova-2.5.0.js"></script>
        <script type="text/javascript" src="script/index.js"></script>
        <script type="text/javascript" charset="utf-8" src="script/PushNotification.js"></script>
        <!-- cordova -->
        
        <!--###########################################################-->
        <!--###########################################################-->
        
        
        
        <!-- jquery mobile -->
        <link rel="stylesheet" type="text/css" href="css/jquery.mobile-1.3.0.css" />
        <script type="text/javascript" src="lib/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="lib/jquery.mobile-1.3.0.min.js"></script>
        <!-- jquery mobile -->
        
        <!--###########################################################-->
        <!--###########################################################-->
        
        <!-- librarys -->
        <link rel="stylesheet" type="text/css" href="css/scrollbar.css" />
        <link rel="stylesheet" type="text/css" href="css/toastr.css" />        
        <script type="text/javascript" src="lib/iscroll.js"></script>
        <script type="text/javascript" src="lib/websocket.js"></script>
        <script type="text/javascript" src="lib/toastr.js"></script>
        <script type="text/javascript" src="lib/jquery.zoomooz.min.js"></script>
      
        <!-- librarys -->
            
        <!--###########################################################-->
        <!--###########################################################-->
            
        <!-- zoster script -->
        <!-- ccr script -->
        <script type="text/javascript" src="script/ccrParser/bodyFunc.js"></script>
        <script type="text/javascript" src="script/ccrParser/ccrViewer.js"></script>
        <script type="text/javascript" src="script/ccrParser/ccrViewHtml.js"></script>
        <script type="text/javascript" src="script/ccrParser/json2.js"></script>
        <script type="text/javascript" src="script/ccrParser/xml2json.js"></script>
        <script type="text/javascript" src="script/ccrParser/dbToJson.js"></script>
        <!-- ccr script -->

        <script type="text/javascript" src="script/paging.js"></script>
        <script type="text/javascript" src="script/uicontroller.js"></script>
        <script type="text/javascript" src="script/genomancer.js"></script>
        <script type="text/javascript" src="script/logger.js"></script> <!-- log 적는곳 -->
        <script type="text/javascript" src="script/websocket.js"></script>
        <!-- zoster script -->
            
        <!-- MR.JANG script -->
        <script type="text/javascript" src="script/common.util.js"></script>
        <script type="text/javascript" src="script/dbconnection.js"></script>
        <script type="text/javascript" src="script/common.initial.js"></script>
        <script type="text/javascript" src="script/index.ajax.js"></script>
        <script type="text/javascript" src="script/index.ui.js"></script>
        <script type="text/javascript" src="script/index.js"></script>
        <script type="text/javascript" src="script/index.control.js"></script>
        <script type="text/javascript" src="script/clinical.js"></script>
        <script src="lib/PushNotification.js"></script>
        <script type="text/javascript" src="script/index.ccrview.js"></script>
        <!-- MR.JANG script -->


        <!-- weight script -->
        <link type="text/css" href='script/fullcalendar/fullcalendar.css' rel='stylesheet' />
        <link type="text/css" href='script/fullcalendar/fullcalendar.print.css' rel='stylesheet' media='print' />
        <script type="text/javascript" src='script/fullcalendar/fullcalendar.js'></script>
        <link rel="stylesheet" type="text/css" hrf="script/fullcalendar/jquery.jqplot.min.css" />
        <script type="text/javascript" src="script/fullcalendar/jquery.jqplot.min.js"></script>
        <script type="text/javascript" src="script/fullcalendar/excanvas.min.js"></script>
        <script type="text/javascript" src='script/jquery/jquery-ui-1.10.2.custom.min.js'></script>
        
        <script type="text/javascript" src="script/weight.js"></script>
        <script type="text/javascript" src="script/glucose.js"></script>
        <script type="text/javascript" src="script/blood.js"></script>
       
        
        <script type="text/javascript" src="script/plugins/jqplot.highlighter.min.js"></script>
        <script type="text/javascript" src="script/plugins/jqplot.cursor.min.js"></script>
        <script type="text/javascript" src="script/plugins/jqplot.dateAxisRenderer.min.js"></script>
        <script type="text/javascript" src="js/highcharts.js"></script>
        <script type="text/javascript" src="js/modules/exporting.js"></script>

        <!-- weight script -->



        <!--###########################################################-->
        
       <script type="text/javascript" charset="utf-8" src="js/HA_genomancer.js"></script><!--Genomancer-->
        
        <!--###########################################################-->
        
        <script type="text/javascript">
            var device_id;
        
        	
            function onBodyLoad()
            {
                document.addEventListener("deviceready", onDeviceReady, false);
            }
            
            function onDeviceReady()
            {
            	var device_id = window.GetDevide.registGCM();		// get data from native code com.snubi.healthavatar.Healthavatar.java
            	alert(device_id);
            	
            	
            	//device_id = device.uuid;
            	
            	//alert(device_id);
            	
                //toastr.success('WebSocket Connection Closed!! ReLogin!!');
                $('.ui-table-columntoggle-btn').hide();
                
               
               //eosloginChk("snubi24","snubi1004");




                //navigator.notification.alert('a',null,'b','c');
                              
                //----------------- 푸시
                var pushNotification = window.plugins.pushNotification;

                pushNotification.registerDevice({alert:true, badge:true, sound:true}, function(status) {
                            for( property in status ){
                                console.log("index.html >>-----registerDevice 1: " + status[property]);
                                                
                            }
                          console.log("index.html >>-----registerDevice 2: "+ status.deviceToken); //디바이스 토큰 아이디
                        //navigator.notification.alert(JSON.stringify(['registerDevice', status]));                                                
                        //device_id = status.deviceToken;
                                                
                                                });
                pushNotification.getPendingNotifications(function(notifications) {
                            console.log("index.html >>-----getPendingNotifications 1: "+ JSON.stringify(notifications, null, 4));
                            console.log("index.html >>-----getPendingNotifications 2: "+ JSON.stringify(['getPendingNotifications', notifications]));
                                                         });
                pushNotification.getRemoteNotificationStatus(function(status) {
                            console.log("index.html >>-----getRemoteNotificationStatus :" + JSON.stringify(['Registration check - getRemoteNotificationStatus', status]));
                                                             });
                
                /*
                 pushNotification.getApplicationIconBadgeNumber( function(badgeNumber) {
                 console.log('badgeNumber: ' +  badgeNumber);
                 });
                 */
                
                //------------------- 푸시 >>> index.control.js
                $("#pushlistview").append("<li data-theme='c'></li>");
                
                $('input').live('focusout', function(e) {
                                e.preventDefault(); e.stopPropagation();
                                window.scrollTo(0,0); //the second 0 marks the Y scroll pos. Setting this to i.e. 100 will push the screen up by 100px.
                              console.log("index.html >>@@@@@@@@@@@@@@@@@@@@@@@");
                                });
               
                /*
                $('#id').bind('focus',function(event){
                              window.scrollTo(0, 0);
                              document.body.scrollTop = 0;
                              });
                $('#pw').bind('focus',function(event){
                              window.scrollTo(0, 0);
                              document.body.scrollTop = 0;
                              });
*/
                
                
                var viewPortHeight = $(window).height();
                $('#loginPage').css({'min-height': viewPortHeight + 'px'});
               
                $("#rightpage").bind("swiperight", function(){
                                     $( "#mainPanel" ).panel( "open" );
                                     });
               
               
               // Swipe Right
               $("#contents37").bind("swiperight",function(event){
                                     console.log("right");
                                     event.stopEvent();
                                     event.stopPropagation();
                                     event.preventDefault();
                                     });
               // Swipe Left
               $("#rightpage").bind("swipeleft",function(event){
                                    console.log("left");
                });
                                                          
               
               
                
                console.log("index.html >>viewPortHeight " + viewPortHeight);
                
                
                //라이프로그
                //selectAgentFunctionalStatuslifelog_newccrview();
                //ccrview_AgentFunctionalStatusMap_List();
                
                
                
            }
            
            document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);
            

            //document.addEventListener('DOMContentLoaded', loaded, false);
            
            
            function snsCall(sendmsg){
            
                window.open('https://twitter.com/intent/tweet?text='+encodeURI(sendmsg),'_blank','location=no');
            
            }
            
            
            
            function snsCall2(url){
                
                console.log("url @@@ " + url);
                
                console.log("--------------------------------------");
                
                console.log("url @@@ " + replaceAll(url," ","") );
                window.open(replaceAll(url," ",""),'_blank','location=no');
              /*
                
                window.open('https://www.facebook.com/dialog/feed?app_id=145634995501895&display=popup&caption=An%20example%20caption&link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F&redirect_uri=https://developers.facebook.com/tools/explorer','_blank','location=no');
                */
            }
        
        function replaceAll(str, searchStr, replaceStr) {
            while (str.indexOf(searchStr) != -1) {
                str = str.replace(searchStr, replaceStr);
            }
            return str;
        }
               </script>
        
        <!--iscroll을 위한 style sheet -->
        <style type="text/css">
            .wrapperxx {height:518px;}
            .wrapper {height:518px;}
            .wrapper2 { height:503px; }
            .wrapper3 { height:443px; }
            .wrapper4 { height:428px; }
          



             /*
              
              
              .wrapperxx {height:518px;}
              .wrapper {height:518px;}
              .wrapper2 { height:503px; }
              .wrapper3 { height:443px; }
              .wrapper4 { height:428px; }
              
              
              
              .wrapperxx {height:700px;}
              .wrapper {height:630px;}
              .wrapper2 { height:615px; }
              .wrapper3 { height:555px; }
              .wrapper4 { height:540px; }
                          
              
              .wrapper {height:430px;}
              .wrapper2 { height:415px; }
              .wrapper3 { height:355px; }
              .wrapper4 { height:340px; }
 
              
            .wrapper {height:518px;}
            .wrapper2 { height:503px; }
            .wrapper3 { height:443px; }
            .wrapper4 { height:428px; }
           */
            }
        </style>
        <!--iscroll을 위한 style sheet -->
        
        
    </head>
        
    
    
    <body onload="onBodyLoad()">
        <div data-role="page" id="mainContents">
            
        <!--page-->
            <!--Login Page 입니다. 가장 먼저 뜨게 되어있으며 
                기존의 다른 페이지와는 병렬로 뜨는 페이지로 Popup으로
                교체해야 될듯 -->
            <div id="loginPage" style="display:block;margin-bottom:50px;"><!--login-->
                <div>
                    
                <img src="img/main.jpg" style="width:320px;height:220px;">
                   
                    <div style="padding:10px;">
                <h3>Please sign in</h3>
                    
                <label for="un" class="ui-hidden-accessible">Username:</label>
                <input type="text" name="user" id="id" value="snubi1004" placeholder="username" data-theme="a">
                    
                <label for="pw" class="ui-hidden-accessible">Password:</label>                    
                <input type="password" name="pass" id="pw" value="snubi1004" placeholder="password" data-theme="a">
                    
                <table align="right">
                    <tr>
                        <td > <a href="" data-role="button" data-theme="b"
                            data-inline="true" style="width:120px;height:40px;">Register</a>  </td>
                        <td ><a href="javascript:loginAction();" data-role="button" data-theme="b"
                            data-inline="true" style="width:120px;height:40px;" >Log In</a>    </td>
                    </tr>
                                      
                </table>
                    </div>
               </div>
            </div><!--login-->
            
            <!-- defaultpanel -->
            <div data-role="panel" id="mainPanel" data-position-fixed="true" data-theme="b">
                
               <div data-role="header" data-theme="b" style="padding:4px;">
                  <table><tr><td> <span id="topid" style="text-align:left;font-size: 14px; "></span></td>
                   <td align="right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:contentsPaging('contents0');showHiddenTopInstall('none','');" ><img src="img/letter2.png"></a></td></tr></table>
               </div>
                
                
                
                    <div id="panelScroll" class="wrapperxx" ><!--scroll-->
                        
                    <ul data-role="listview"  data-theme="b">
              
                        <ul data-role="listview">
                            <li data-theme='a' data-role="list-divider"><span style="vertical-align:middle;font-size: 17px;">BASIC AGENTS</span></li>
                           
                        </ul>
                      
                      
                        <ul data-role='listview' id='listview001'>
                        </ul>
                    </ul>
                    </div><!--scroll-->
                
            </div>
            <!-- /defaultpanel -->

            <div data-role="header" id="header01" style="display:block;">
               
                <a href="#mainPanel"><img src="img/comment.png"></a>
                <h1>Health Avatar</h1>
                
                <a href="javascript:contentsPaging('contents4');agentListView('contentsScroll4');showHiddenTopInstall('none','');agentUninstall(nowAgentId,nowAvatarId);" id="destory"
                         style="display:none;" data-icon="gear" data-theme="a">UnInstall</a>
               
            </div>
            
            <div data-role="header" id="header02" style="display:none;">
                
                <a href="#mainPanel"><img src="img/comment.png"></a>
                <h1>Health Avatar</h1>
                
                
               <a href="#popupMenu2" data-rel="popup" data-role="button" data-inline="true" data-transition="pop" data-icon="gear" data-theme="a">Risk</a>
                <div data-role="popup" id="popupMenu2" data-theme="d">
                    <ul data-role="listview" data-inset="true" style="min-width:210px;" data-theme="d" id='listview007'>
                                           </ul>
               
                </div>

            </div>


            
            <div data-role="content" id="rightpage">
            <!--content side-->
            
            
            <div data-role="popup" id="popupBasic019" data-theme="a">
                <div data-role="popup" id="popupBasic01" data-theme="a" class="ui-corner-all">
                    <form>
                        <div style="padding:10px 20px;" id="popupBasic010">
                            
                        </div>
                    </form>
                </div>
            </div>

            
                
                <!------------main----style="background-image:url(img/healthavatar.jpg); width:300; height:200; "------->
                <div id="contents0" style="display:block;background-image:url(img/healthavatar.png);width:320px;height:480px;padding-top:20px;">
                    
                   <!-- <a href="" data-ajax = "false" data-role="button" data-icon="star" data-theme="c" >Messages</a>-->
                    
                    <div class="wrapper2" id='pushlistview0'>
                        <ul data-role='listview' id='pushlistview'>
                        </ul>
                    </div>

                </div>
                <!------------------------>
                
                
                
                               
                
                
                <!------------CCR------------>                
                <div id="contents1" style="display:none;"><!--ccr-->
                    
                                          
                </div><!--ccr-->
                <!------------------------>
                
                
                
                
               
                
            
                <!-------------Genomic data----------->
                <div id="contents2" style="display:none;">
                    
                    <div id="contentsScroll2" class="wrapper3" style="padding-left:2px;padding-top:1px;padding-bottom:1px;"><!--scroll-->
                        
                      
                        <table id="genomancer" style="text-align:right;font-size:12px;border:2px solid #000000;border-radius:15px;">                            
                            <tr style="border:3px solid #000000;"><td>Chromosome</td><td colspan=2 style="text-align:center"># Variants</td><td># Total Variants</td></tr>
                            <tr><td></td><td># dbSNPs</td><td># non-dbSNPs</td><tr>
                        </table>
                    </div>
                    <p align="right">
                    <a href="javascript:setTimeout('fileSystemCall();',400);toastr.success('Insert');" data-role="button" data-theme="c" data-inline="true" data-mini="true">Insert</a>
                    <a href="javascript:openGenoDb();" data-role="button" data-theme="c" data-inline="true" data-mini="true">Load</a>
                    </p>
                </div>
                <!------------------------>
                        
                <!-------------Life log----------->
                <div id="contents3" style="display:none;">
                  
                    <div id="contentsScroll3" class="wrapper2">
                        
                        <div id="lifers003" class="wrapper2"></div>
                    </div>

                </div>
                <!------------------------>
                
               
                
                <!--------------total---------->
                <div id="contents4" style="display:none;"><!--recommend,contract,total-->
                    <div id="contentsScroll4" class="wrapper2"><!--scroll-->
                        
                    </div>
                </div>
                <!------------------------>    
                
                <!---------- iframe agent page in-------------->
                <div id="contents5" style="display:none;">
                    <iframe src="" id="glucose" frameborder="0"></iframe>
                </div>
                <!------------------------>
                
                <!------------agentAgree------------>
                <div id="contents6" style="display:none;">
                    <div data-role="popup" id="agreeMenu" data-theme="b" class="ui-corner-all" style="padding:20px;">
                        <form>
                            <h3 id="agentName"></h3>                            
                                                           
                                <table width="260px">
                                    <tr>
                                        <td align='center' width ="100px"> <img id='agreeimgN' src='img/blank.png' width='70px' height='70px'></td>
                                        <td align='center'>
                                           <div id="install" style="display:none;">
                                              <a href="javascript:agentAgree();" data-role="button" data-theme="c" data-inline="true" style="width:120px;height:40px;">Install</a>
                                           </div>
                                            <div id="uninstall" style="display:none;">
                                                <a href="javascript:agentUninstallPop();" data-role="button" data-theme="e" data-inline="true" style="width:120px;height:40px;">UnInstall</a>
                                            </div>
                                        </td>
                                    </tr>                                   
                                </table>                            
                             <label id="agentLoaction" for="textinput-disabled" style="word-break:break-all;"></label>
                            <br>
                             <label id="agentCategory" for="textinput-disabled" style="word-break:break-all;"></label>
                            <br>
                            <label id="agentDescription" for="textinput-disabled" style="word-break:break-all;"></label>
                            <br>
                             
                        </form>
                    </div>

                </div>
                <!------------------------>
                
                <!------------Profile------------>
                <div id="contents7" style="display:none;">
                    <h3><center>Profile Setting</center></h3>
                    <div id="contentsScroll7" class="wrapper4">
                        <form>
                            <div style="padding:10px;">
                                
                                <table>
                                    <tr>
                                        <td>ID</td>
                                        <td><input type="text" name="idt" id="idt" value="" placeholder="id" data-theme="a"></td>
                                    </tr>
                                    <tr>
                                        <td>Password</td>
                                        <td><input type="password" name="password" id="password" value="" placeholder="password" data-theme="a"></td>
                                    </tr>
                                    <tr>
                                        <td>E-mail</td><td><input type="text" name="email" id="email" value="" placeholder="email" data-theme="a"></td>
                                    </tr>
                                    <tr>
                                        <td>Birth Date</td><td><input type="date" name="birth_date" id="birth_date" value="0000-00-00"></td>
                                    </tr>
                                    <tr>
                                        <td>Sex</td><td>
                                            
                                            <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
                                                <input type="radio" data-theme="a" name="sex" id="sexa" value="1">
                                                    <label for="sexa">Male</label>
                                                    <input type="radio" data-theme="a" name="sex" id="sexb" value="2">
                                                        <label for="sexb">Female</label>
                                                        </fieldset>
                                            
                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Smoker</td>
                                        <td>
                                            <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
                                                <input type="radio" data-theme="a" name="smoker" id="smokera" value="1">
                                                    <label for="smokera">Yes</label>
                                                    <input type="radio" data-theme="a" name="smoker" id="smokerb" value="2">
                                                        <label for="smokerb">No</label>
                                                        </fieldset>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Drinking</td>
                                        <td>
                                            <fieldset data-role="controlgroup" data-type="horizontal" data-mini="true">
                                                <input type="radio" data-theme="a" name="drinking" id="drinkinga" value="1">
                                                    <label for="drinkinga">Yes</label>
                                                    <input type="radio" data-theme="a" name="drinking" id="drinkingb" value="2">
                                                        <label for="drinkingb">No</label>
                                                        </fieldset>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>Height</td><td><input type="text" name="height" id="height" value="" placeholder="height" data-theme="a"></td>
                                    </tr>
                                    <tr>
                                        <td>Weight</td><td><input type="text" name="weight" id="weight" value="" placeholder="weight" data-theme="a"></td>
                                    </tr>
                                    <tr>
                                        <td>Bmi</td><td><input type="text" name="bmi" id="bmi" value="" placeholder="bmi" data-theme="a"></td>
                                    </tr>
                                    <tr><td>Interesting Category</td><td></td>
                                        <td></td>
                                        <td></td><td></td></tr>
                                    
                                    <tr>
                                        <td>
                                            <input type="checkbox" name="Preventivecare" id="Preventivecare" value="Preventive care" class="custom" data-mini="true">
                                                <label for="Preventivecare">Preventive care</label>
                                                </td>
                                        <td>
                                            <input type="checkbox" name="Medicationalert" id="Medicationalert" value="Medication alert" class="custom" data-mini="true">
                                                <label for="Medicationalert">Medication alert</label>
                                                </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="checkbox" name="Healthmonitoring" id="Healthmonitoring" value="Health monitoring" class="custom" data-mini="true">
                                                <label for="Healthmonitoring">Health monitoring</label>
                                                </td>
                                        <td>
                                            <input type="checkbox" name="Diagnosis" id="Diagnosis" class="custom" value="Diagnosis" data-mini="true">
                                                <label for="Diagnosis">Diagnosis</label>
                                                </td>
                                    </tr>
                                    
                                    <tr>
                                        <td>
                                            <input type="checkbox" name="Entertainment" id="Entertainment" value="Entertainment" class="custom" data-mini="true">
                                                <label for="Entertainment">Entertainment</label>
                                                </td>
                                        <td>
                                            <input type="checkbox" name="DiseaseControl" id="DiseaseControl" value="Disease Control" class="custom" data-mini="true">
                                                <label for="DiseaseControl">Disease Control</label>
                                                </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="checkbox" name="HealthQA" id="HealthQA" value="Health Q and A" class="custom" data-mini="true">
                                                <label for="HealthQA">Health Q and A</label>
                                                </td>
                                        <td>
                                            <input type="checkbox" name="MedicalResearch" id="MedicalResearch" value="Medical Research" class="custom" data-mini="true">
                                                <label for="MedicalResearch">Medical Research</label>
                                                </td>
                                    </tr>
                                </table>
                                <input type="hidden" name="modify" id="modify" value="true">
                                        
                                    
                                    
                                    </div>
                        </form>
                    </div><!-- scroll -->
                    <div style="align:right;">
                        <a href="javascript:sendSettingList();" data-role="button" data-theme="b"  data-inline="true" data-mini="true" >Submit</a>
                    </div>                    
                </div>
                <!------------------------>
                
                
                <!-------------results----------->
                <div id="contents8" style="display:none;margin:10px;">
                    <div id="contentsScroll8" class="wrapper2">
                        <a href="javascript:contentsPaging('contents11');" data-role="button" data-theme="b"  data-inline="true" data-mini="true" >Back</a>
                        <div id="rs001" class="wrapper2"></div>
                    </div>
                </div>
                <!------------------------>

                
                
                <!-------------functionalstatus----------->
                <div id="contents9" style="display:none;margin:10px;">
                    <div id="contentsScroll9" class="wrapper2">
                        <a href="javascript:contentsPaging('contents11');" data-role="button" data-theme="b"  data-inline="true" data-mini="true" >Back</a>
                        <div id="rs002" class="wrapper2"></div>
                    </div>
                </div>
                <!------------------------>
                
                <!--------------Genomancer---------->
                <div id="contents10" style="display:none;">
                   <a href="javascript:signal();displayloading();" data-ajax = "false" data-role="button" data-icon="star" data-theme="c" >Clinical assessment</a>
                    <div id="resultgnome"  class="wrapper2" style="margin:10px;">                    
                    </div>
                </div>
                <!------------------------>
                
                
                <!-------------results 분기(results,functionalstatus)----------->
                <div id="contents11" style="display:none;margin:10px;">
                    <div id="contentsScroll11" class="wrapper2">
                        <br>
                       <center> Agents to Avatar Results and FunctionalStatus</center><br><br>
                      <center> <a href="javascript:contentsPaging('contents8');selectAgentResults();Warfarin();" data-role="button" data-theme="b"  data-inline="true" data-mini="true" >Results</a>
                       
                       <a href="javascript:contentsPaging('contents9');selectAgentFunctionalStatus();Warfarin();" data-role="button" data-theme="b"  data-inline="true" data-mini="true" >FunctionalStatus</a>
                        </center>
                    </div>
                </div>
                <!------------------------>
                
                
                
                <!-------------Clinical assessment 찬희샘 그래프이미지 초기 로딩페이지----------->
                <div id="contents12" style="display:none;margin:10px;">
                    <div id="contentsScroll12" class="wrapper2">
                    
                         <a href="javascript:CAsignalNew();displayloading();" data-ajax = "false" data-role="button" data-icon="star" data-theme="c" >Clinical assessment</a>
                    
                                    
                    </div>   
                </div>
                <!------------------------>

                <!-------------Clinical assessment 찬희샘 그래프이미지 각 질병클릭시----------->
                <div id="contents13" style="display:none;">
                    <div id="contentsScroll13" class="wrapper2">
                        <div id="rs003" class="wrapper2"></div>
                    </div>
                </div>
                <!-- ccr view main ---------------------->
                
                <div id="contents14" style="display:none;background-imge:url(img/ccr/ccr_img_bg.png);">
                    
                    
                    <div id="blue_alert" style="position:absolute;" class="wrapper2">
                        <br><br>
                        <table width="320" border="0">
                            
                            <tr>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue01" style="display:none"></td>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue02" style="display:none"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue03" style="display:none"></td>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue04" style="display:none"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue05" style="display:none"></td>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue06" style="display:none"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue07" style="display:none"></td>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue08" style="display:none"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue09" style="display:none"></td>
                                <td width="160" height="80" align="left" valign="top"><img src="img/ccr/new_alert_1.png" id="blue10" style="display:none"></td>
                            </tr>
                        </table>
                        
                    </div>

                    
                    
                    <div id="red_alert" style="position:absolute;" class="wrapper2">
                        <br><br>
                        <table width="320" border="0">
                            
                            <tr>
                            <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_PayersMap_List();contentsPaging('contents35');contentsScroll('contentsScroll35');showHiddenTopInstall('none','');"></td>
                            <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_AdvanceDirectivesMap_List();contentsPaging('contents15');contentsScroll('contentsScroll15');showHiddenTopInstall('none','');"><img src="img/ccr/alert_1.png" id="red01" style="display:none"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_AlertsMap_List();contentsPaging('contents17');contentsScroll('contentsScroll17');showHiddenTopInstall('none','');"><img src="img/ccr/alert_1.png" id="red02" style="display:none"></td>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_ProblemsMap_List();contentsPaging('contents19');contentsScroll('contentsScroll19');showHiddenTopInstall('none','');"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_FamilyHistoryMap_List();contentsPaging('contents22');contentsScroll('contentsScroll22');showHiddenTopInstall('none','');"></td>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_ResultsMap_List();contentsPaging('contents25');contentsScroll('contentsScroll25');showHiddenTopInstall('none','');"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_MedicationsMap_List();contentsPaging('contents28');contentsScroll('contentsScroll28');showHiddenTopInstall('none','');"></td>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_ImmunizationsMap_List();contentsPaging('contents31');contentsScroll('contentsScroll31');showHiddenTopInstall('none','');"></td>
                            </tr>
                            <tr>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_EncountersMap_List();contentsPaging('contents33');contentsScroll('contentsScroll33');showHiddenTopInstall('none','');"></td>
                                <td width="160" height="80" align="right" valign="bottom" onClick="javascript:ccrview_all_view();contentsPaging('contents37');contentsScrollH('contentsScroll37');showHiddenTopInstall('none','');"></td>
                            </tr>
                            
                        </table>

                    </div>
                    
                    
                    <div id="contentsScroll14" class="wrapper2">
                        <br><br>
                        <table width="320" align="center">
                            
                            <tr><td width="160" align="center">
                            <a href="javascript:ccrview_PayersMap_List();contentsPaging('contents35');contentsScroll('contentsScroll35');showHiddenTopInstall('none','');"><img src="img/ccr/bt_personal_info_selected.png"></a></td>
                                <td width="160" align="center">
                                    <a href="javascript:ccrview_AdvanceDirectivesMap_List();contentsPaging('contents15');contentsScroll('contentsScroll15');showHiddenTopInstall('none','');"><img src="img/ccr/bt_advance_medical_selected.png"></a></td></tr>
                            <tr><td width="160" align="center">
                                <a href="javascript:ccrview_AlertsMap_List();contentsPaging('contents17');contentsScroll('contentsScroll17');showHiddenTopInstall('none','');">
                                <img src="img/ccr/bt_alert_selected.png"></a></td>
                                <td width="160" align="center">
                                    <a href="javascript:ccrview_ProblemsMap_List();contentsPaging('contents19');contentsScroll('contentsScroll19');showHiddenTopInstall('none','');">
                                        <img src="img/ccr/bt_problem_selected.png"></a></td></tr>
                           
                           <tr><td width="160" align="center">
                                <a href="javascript:ccrview_FamilyHistoryMap_List();contentsPaging('contents22');contentsScroll('contentsScroll22');showHiddenTopInstall('none','');">
                                    <img src="img/ccr/bt_family_history_selected.png"></a></td>
                                <td width="160" align="center">
                                    <a href="javascript:ccrview_ResultsMap_List();contentsPaging('contents25');contentsScroll('contentsScroll25');showHiddenTopInstall('none','');">
                                        <img src="img/ccr/bt_result_selected.png"></a></td></tr>
                           
                            <tr><td width="160" align="center">
                                <a href="javascript:ccrview_MedicationsMap_List();contentsPaging('contents28');contentsScroll('contentsScroll28');showHiddenTopInstall('none','');">                                <img src="img/ccr/bt_medication_selected.png"></a></td>
                                <td width="160" align="center">
                                    <a href="javascript:ccrview_ImmunizationsMap_List();contentsPaging('contents31');contentsScroll('contentsScroll31');showHiddenTopInstall('none','');">
                                        <img src="img/ccr/bt_immunization_selected.png"></a></td></tr>
                            
                            <tr><td width="160" align="center">
                                <a href="javascript:ccrview_EncountersMap_List();contentsPaging('contents33');contentsScroll('contentsScroll33');showHiddenTopInstall('none','');">
                                    <img src="img/ccr/bt_encounter_selected.png"></a></td>
                                <td width="160" align="center">
                                    <a href="javascript:ccrview_all_view();contentsPaging('contents37');contentsScrollH('contentsScroll37');showHiddenTopInstall('none','');">
                                        <img src="img/ccr/bt_procedure_selected.png"></a></td></tr>
                           
                        </table>
                        
                    </div>
                    
                </div>
                <!------------------------>

                
                <!-- ccr view list ---------------------->
                <div id="contents15" style="display:none;margin:10px;">
                    <div id="contentsScroll15" class="wrapper2" style="margin:10px;">
                        <div>
                        <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
                        <ul data-role="listview" id="listview_AdvanceDirectivesMap" data-inset="true">
                        </ul>
                        </div>
                    </div>
                </div>
                <!------------------------>
                <!-- ccr view view ---------------------->
                <div id="contents16" style="display:none;margin:10px;"><br>
                    <a href="javascript:javascript:ccrview_AdvanceDirectivesMap_List();contentsPaging('contents15');contentsScroll('contentsScroll15');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>사전의료지시 리스트</a>
                    <div id="contentsScroll16" class="wrapper2" style="margin:10px;">
                        <table data-role='table' id='AdvanceDirectivesMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
                        </table>
                    </div>
                </div>
                <!------------------------>

<!-- ccr view list ---------------------->
<div id="contents17" style="display:none;margin:10px;">
    <div id="contentsScroll17" class="wrapper2" style="margin:10px;">
        <div>
        <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
        <ul data-role="listview" id="listview_AlertsMap" data-inset="true">
        </ul>
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents18" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_AlertsMap_List();contentsPaging('contents17');contentsScroll('contentsScroll17');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>알레르기 부작용 리스트</a>
    <div id="contentsScroll18" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='AlertsMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>


<!-- ccr view list ---------------------->
<div id="contents19" style="display:none;margin:10px;">
    <div id="contentsScroll19" class="wrapper2" style="margin:10px;">
        <div>
        <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
        <ul data-role="listview" id="listview_ProblemsMap" data-inset="true">
        </ul>
        <ul data-role="listview" id="listview_FunctionalStatusMap" data-inset="true">
        </ul>
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents20" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_ProblemsMap_List();contentsPaging('contents19');contentsScroll('contentsScroll19');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>문제목록 리스트</a>
    <div id="contentsScroll20" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='ProblemsMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents21" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_ProblemsMap_List();contentsPaging('contents19');contentsScroll('contentsScroll19');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>기능평가 리스트</a>
    <div id="contentsScroll21" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='FunctionalStatusMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>




<!-- ccr view list ---------------------->
<div id="contents22" style="display:none;margin:10px;">
    <div id="contentsScroll22" class="wrapper2" style="margin:10px;">
        <div>
        <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
        <ul data-role="listview" id="listview_FamilyHistoryMap" data-inset="true">
        </ul>
        <ul data-role="listview" id="listview_SocialHistoryMap" data-inset="true">
        </ul>
    </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents23" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_FamilyHistoryMap_List();contentsPaging('contents22');contentsScroll('contentsScroll22');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>가족력 리스트</a>
    <div id="contentsScroll23" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='FamilyHistoryMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents24" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_FamilyHistoryMap_List();contentsPaging('contents22');contentsScroll('contentsScroll22');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>사회력 리스트</a>
    <div id="contentsScroll24" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='SocialHistoryMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>




<!-- ccr view list ---------------------->
<div id="contents25" style="display:none;margin:10px;">
    <div id="contentsScroll25" class="wrapper2"  style="margin:10px;">
       <div>
       <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
       
        <ul data-role="listview" id="listview_ResultsMap" data-inset="true">
        </ul>
        <ul data-role="listview" id="listview_VitalSignsMap" data-inset="true">
        </ul>
       
       </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents26" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_ResultsMap_List();contentsPaging('contents25');contentsScroll('contentsScroll25');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>검사결과 리스트</a>
    <div id="contentsScroll26" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='ResultsMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents27" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_ResultsMap_List();contentsPaging('contents25');contentsScroll('contentsScroll25');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>활력징후 리스트</a>
    <div id="contentsScroll27" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='VitalSignsMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>









<!-- ccr view list ---------------------->
<div id="contents28" style="display:none;margin:10px;">
    <div id="contentsScroll28" class="wrapper2"  style="margin:10px;">
        <div>
            <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
            
            <ul data-role="listview" id="listview_MedicationsMap" data-inset="true">
            </ul>
            <ul data-role="listview" id="listview_ProceduresMap" data-inset="true">
            </ul>
            
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents29" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_MedicationsMap_List();contentsPaging('contents28');contentsScroll('contentsScroll28');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>투약 리스트</a>
    <div id="contentsScroll29" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='MedicationsMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents30" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_MedicationsMap_List();contentsPaging('contents28');contentsScroll('contentsScroll28');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>처치/시술 리스트</a>
    <div id="contentsScroll30" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='ProceduresMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>







<!-- ccr view list ---------------------->
<div id="contents31" style="display:none;margin:10px;">
    <div id="contentsScroll31" class="wrapper2" style="margin:10px;">
        <div>
            <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
            <ul data-role="listview" id="listview_ImmunizationsMap" data-inset="true">
            </ul>
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents32" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_ImmunizationsMap_List();contentsPaging('contents31');contentsScroll('contentsScroll31');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>예방접종 리스트</a>
    <div id="contentsScroll32" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='ImmunizationsMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>




<!-- ccr view list ---------------------->
<div id="contents33" style="display:none;margin:10px;">
    <div id="contentsScroll33" class="wrapper2" style="margin:10px;">
        <div>
            <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
            
            
            <br>
            
            
            <a href="javascript:contentsPaging('contents45');contentsScroll('contentsScroll45');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록업데이트</a>

            <ul data-role="listview" id="ccrupdatetimem" data-inset="true">
                <li>강의내과</li>
                <li>최근업데이트일 :</li>
            </ul>

            <ul data-role="listview" id="listview_EncountersMap" data-inset="true">
            </ul>
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents34" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_EncountersMap_List();contentsPaging('contents33');contentsScroll('contentsScroll33');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>의료기관방문기록 리스트</a>
    <div id="contentsScroll34" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='EncountersMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>




<!-- ccr view list ---------------------->
<div id="contents35" style="display:none;margin:10px;">
    <div id="contentsScroll35" class="wrapper2" style="margin:10px;">
        <div>
            <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
            <ul data-role="listview" id="listview_PayersMap" data-inset="true">
            </ul>
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents36" style="display:none;margin:10px;"><br>
     <a href="javascript:javascript:ccrview_PayersMap_List();contentsPaging('contents35');contentsScroll('contentsScroll35');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>보험정보 리스트</a>
    <div id="contentsScroll36" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='PayersMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>



<!-- ccr view list ---------------------->
<div id="contents37" style="display:none;margin:10px;"><br>
    
    
      <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
    
    <div id="contentsScroll37" class="wrapper2" style="margin:10px;">
        <div style="width:1000px;">
          
          <ul><li>보험정보</li></ul>
           <table data-role='table' id='PayersMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
            </table>
           <ul><li>사전의료지시</li></ul>
           <table data-role='table' id='AdvanceDirectivesMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>알레르기 부작용</li></ul>
           <table data-role='table' id='AlertsMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>문제목록</li></ul>
           <table data-role='table' id='ProblemsMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>기능평가</li></ul>
           <table data-role='table' id='FunctionalStatusMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>가족력</li></ul>
           <table data-role='table' id='FamilyHistoryMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>사회력</li></ul>
           <table data-role='table' id='SocialHistoryMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>검사결과</li></ul>
           <table data-role='table' id='ResultsMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>활력징후</li></ul>
           <table data-role='table' id='VitalSignsMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>투약</li></ul>
           <table data-role='table' id='MedicationsMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>처치/시술</li></ul>
           <table data-role='table' id='ProceduresMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>예방접종</li></ul>
           <table data-role='table' id='ImmunizationsMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
            <ul><li>의료기관 방문기록</li></ul>
           <table data-role='table' id='EncountersMap_table_all' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
           </table>
           
           
        </div>
    </div>
</div>
<!------------------------>




<!-- ccr view list ---------------------->
<div id="contents38" style="display:none;margin:10px;">
    <div id="contentsScroll38" class="wrapper2" style="margin:10px;">
        <div>
           
            <ul data-role="listview" id="listview_AgentFunctionalStatusMap" data-inset="true">
            </ul>
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents39" style="display:none;margin:10px;"><br>
    <a href="javascript:javascript:ccrview_AgentFunctionalStatusMap_List();contentsPaging('contents38');contentsScroll('contentsScroll38');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>라이프로그 리스트</a>
    <div id="contentsScroll39" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='AgentFunctionalStatusMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>







<!-- ccr view list ---------------------->
<div id="contents40" style="display:none;margin:10px;">
    <div id="contentsScroll40" class="wrapper2"  style="margin:10px;">
        <div>
             에이전트결과 메인
            
            <ul data-role="listview" id="listview_AgentResultsMap" data-inset="true">
            </ul>
            <ul data-role="listview" id="listview_AgentFunctionalStatusMap2" data-inset="true">
            </ul>
            
        </div>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents41" style="display:none;margin:10px;"><br>
    <a href="javascript:selectAgentResults();selectAgentFunctionalStatus();ccrview_AgentResultsMap_List();contentsPaging('contents40');contentsScroll('contentsScroll40');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>검사결과 리스트</a>
    <div id="contentsScroll41" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='AgentResultsMap_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>
<!-- ccr view view ---------------------->
<div id="contents42" style="display:none;margin:10px;"><br>
    <a href="javascript:selectAgentResults();selectAgentFunctionalStatus();ccrview_AgentResultsMap_List();contentsPaging('contents40');contentsScroll('contentsScroll40');showHiddenTopInstall('none','');" data-role='button' data-mini='true' data-inline='true' data-icon='arrow-r' data-theme='b'>기능평가 리스트</a>
    <div id="contentsScroll42" class="wrapper2" style="margin:10px;">
        <table data-role='table' id='AgentFunctionalStatusMap2_table' data-mode='columntoggle' class='ui-body-d ui-shadow table-stripe ui-responsive'>
        </table>
    </div>
</div>
<!------------------------>


<!-- diary ---------------------->
<div id="contents43" style="display:none;margin:30px;"><br>
    <a href="javascript:contentsPaging('contents46');showHiddenTopInstall('none','');weightinit('1');" data-role='button'  data-inline='true' data-icon='arrow-r' data-theme='b' rel="external">신체정보관리</a><br>
    <a href="javascript:contentsPaging('contents47');showHiddenTopInstall('none','');bloodinit();" data-role='button'  data-inline='true' data-icon='arrow-r' data-theme='b' rel="external">혈압관리</a><br>
    <a href="javascript:contentsPaging('contents48');showHiddenTopInstall('none','');glucoseinit();" data-role='button'  data-inline='true' data-icon='arrow-r' data-theme='b' rel="external">혈당관리</a>
</div>
<!------------------------>


<div id="contents44" style="display:none;">
    <iframe src="" id="diaryiframe" frameborder="0"></iframe>
</div>


<!-- ccr view list ---------------------->
<div id="contents45" style="display:none;margin:10px;">
    <div id="contentsScroll45" class="wrapper2" style="margin:10px;">
        <div>
            <a href="javascript:contentsPaging('contents14');contentsScroll('contentsScroll14');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">의무기록 메인</a>
           
           <form>
               <div style="padding:10px;">
                   
                   <table>
                       <tr>
                           <td>기관</td><td><input type="text" name="dagent" id="dagent" value="" placeholder="강의내과" data-theme="a"></td>
                       </tr>
                       <tr>
                           <td>ID</td>
                           <td><input type="text" name="did" id="did" value="snubi24" placeholder="id" data-theme="a"></td>
                       </tr>
                       <tr>
                           <td>Password</td>
                           <td><input type="password" name="dpw" id="dpw" value="snubi1004" placeholder="password" data-theme="a"></td>
                       </tr>
                      
                  </table>
                </div>
           </form>
        </div>
        <div style="align:right;">
            <a href="javascript:eosloginChk();" data-role="button" data-theme="b"  data-inline="true" data-mini="true" rel="external">Submit</a>
        </div>
    </div>
</div>
<!------------------------>








<!-- 체중관리 ---------------------->
<div id="contents46" style="display:none;margin:10px;">
    <div id="contentsScroll46" class="wrapper2" style="margin:10px;">
    <div>
        
        
        
        <div data-role="navbar">
        <ul>
            <li><a href="#" class="ui-btn-active"><font size="3">체중관리</font> </a></li>
        </ul>
        </div><!-- /navbar -->
        <br>
        <div id='weight_calendar' class="ui-body-d ui-body"></div>
        <br>
        <div class="ui-body-d ui-body">
            <div id="weight_nal"></div>
            <table>
                <tr><td>체중입력</td><td> <div style="width:80px"><input type="number" name="input001" id="input001" value=""
                     onKeyup="cal_bmi();" > </div></td><td>kg</td></tr>
                <tr><td>키입력</td><td> <div style="width:80px"><input type="number" name="input002" id="input002" value=""
                      onKeyup="cal_bmi();"> </div></td><td>cm</td></tr>
                <tr><td>체질량지수계산결과</td><td> <div style="width:80px"><input type="number" name="input003" id="input003" value=""
                    onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td></td></tr>
               
               <!--
               <tr><td>허리둘레입력</td><td> <div style="width:80px"><input type="number" name="input004" id="input004" value=""
                    onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>cm</td></tr>
                -->
            </table>
        </div>
        <div style="text-align:right;padding:10px;">
            
            
             <a href="javascript:contentsPaging('contents43');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">처음으로</a>
            <a href="javascript:weightSaveDo();" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">저장하기</a>
        </div>
        
        <div data-role="controlgroup" data-type="horizontal">
            <a href="javascript:contentsPaging('contents46');showHiddenTopInstall('none','');weightinit('1');" data-role="button">체중</a>
            <a href="javascript:contentsPaging('contents46');showHiddenTopInstall('none','');weightinit('2');" data-role="button">키</a>
            <a href="javascript:contentsPaging('contents46');showHiddenTopInstall('none','');weightinit('3');" data-role="button">체질량지수</a>
        </div>
        
        
        <div class="ui-body-d ui-body" style="padding:10px;">
            <div id="weight_chart2">
                
            </div>
        </div>
   
        <br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br>
        <input type="hidden" name="weight_updata_time" id="weight_updata_time" value="">
            
            
    </div>
    </div>
</div>
<!---체중관리--------------------->






<!-- 혈압관리 ---------------------->
<div id="contents47" style="display:none;margin:10px;">
    <div id="contentsScroll47" class="wrapper2" style="margin:10px;">
        <div>
            
            
            
            <div data-role="navbar">
                <ul>
                    <li><a href="#" class="ui-btn-active"><font size="3">혈압관리</font> </a></li>
                </ul>
            </div><!-- /navbar -->
            <br>
            <div id='blood_calendar' class="ui-body-d ui-body"></div>
            <br>
            <div class="ui-body-d ui-body">
                <div id="blood_nal"></div>
                <table>
                    <tr><td>이완기혈압</td><td> <div style="width:80px"><input type="number" name="blood01" id="blood01" value=""
                        onKeyup="cal_bmi();" > </div></td><td>mmHg</td></tr>
                    <tr><td>수축기혈압</td><td> <div style="width:80px"><input type="number" name="blood02" id="blood02" value=""
                        onKeyup="cal_bmi();"> </div></td><td>mmHg</td></tr>
                </table>
            </div>
            <div style="text-align:right;padding:10px;">
                <a href="javascript:contentsPaging('contents43');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">처음으로</a>
                <a href="javascript:bloodSaveDo();" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">저장하기</a>
            </div>
            
            
            
            <div class="ui-body-d ui-body" style="padding:10px;">
                <div id="blood_chart2">
                    
                </div>
            </div>
            
            <br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br>
            <input type="hidden" name="blood_updata_time" id="blood_updata_time" value="">
                
                
                </div>
    </div>
</div>
<!---혈압관리--------------------->



<!-- 혈당관리 ---------------------->
<div id="contents48" style="display:none;margin:10px;">
    <div id="contentsScroll48" class="wrapper2" style="margin:10px;">
        <div>
            
            
            
            <div data-role="navbar">
                <ul>
                    <li><a href="#" class="ui-btn-active"><font size="3">혈당관리</font> </a></li>
                </ul>
            </div><!-- /navbar -->
            <br>
            <div id='glucose_calendar' class="ui-body-d ui-body"></div>
            <br>
            <div class="ui-body-d ui-body">
                <div id="glucose_nal"></div>
                <table>
                    <tr><td>아침식전</td><td> <div style="width:80px">
                        <input type="number" name="bbefore" id="bbefore" value="" onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>mg/dl</td></tr>
                    <tr><td>아침식후</td><td> <div style="width:80px">
                        <input type="number" name="bafter" id="bafter" value="" onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>mg/dl</td></tr>
                    <tr><td>점심식전</td><td> <div style="width:80px">
                        <input type="number" name="lbefore" id="lbefore" value="" onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>mg/dl</td></tr>
                    <tr><td>점심식후</td><td> <div style="width:80px">
                        <input type="number" name="lafter" id="lafter" value="" onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>mg/dl</td></tr>
                    <tr><td>저녁식전</td><td> <div style="width:80px">
                        <input type="number" name="dbefore" id="dbefore" value="" onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>mg/dl</td></tr>
                    <tr><td>저녁식후</td><td> <div style="width:80px">
                        <input type="number" name="dafter" id="dafter" value="" onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>mg/dl</td></tr>
                    <tr><td>취침전</td><td> <div style="width:80px">
                        <input type="number" name="sbefore" id="sbefore" value="" onKeypress="if(event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> </div></td><td>mg/dl</td></tr>
                    
                </table>
            </div>
            <div style="text-align:right;padding:10px;">
                <a href="javascript:contentsPaging('contents43');showHiddenTopInstall('none','');" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">처음으로</a>
                <a href="javascript:glucoseSaveDo();" data-role="button" data-mini="true" data-inline="true" data-icon="arrow-r" data-theme="b">저장하기</a>
            </div>
            
            
            
            <div class="ui-body-d ui-body" style="padding:10px;">
                <div id="glucose_chart2">
                    
                </div>
            </div>
            
            <br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br>
            <input type="hidden" name="glucose_updata_time" id="glucose_updata_time" value="">
                
                
                </div>
    </div>
</div>
<!---혈당관리--------------------->







            <!--content side-->
            </div>

        <!--page-->
        </div>

    </body>
</html>

